package cn.tedu.boot.ers.pojo.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Description: AddCategoryDTO
 * @Author: han
 * @Date:
 **/
@Data
public class AddCategoryDTO {

    @Size(min = 2, max = 5)
    @NotNull
    private String name;

    @NotNull
    @Max(3)
    private Integer type;

    @NotNull
    private Integer parentId;

    @NotNull
    private Integer orderNum;
}
